<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>

</body>
<script type="text/javascript">
// 输入一个数字，判断是否能被3整除并且能被5整除
var num = prompt("请输入你要判断的数字：");

var res = (num%3 && num%5)
if(res == 0){
    document.write("能被3整除并且能被5整除");
}else{
    document.write("不能被整除");
}

</script>
</html>